<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>社交网站促销信息推荐</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #818cf8;
            --primary-dark: #3730a3;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --danger: #ef4444;
            --success: #10b981;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            --radius: 8px;
            --transition: all 0.3s ease;
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .section-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--primary);
            display: inline-block;
        }
        
        .promo-card {
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            margin-bottom: 1.5rem;
        }
        
        .promo-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .promo-author {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .author-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            font-weight: 600;
            font-size: 0.95rem;
        }
        
        .post-time {
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        .promo-stats {
            display: flex;
            gap: 1.25rem;
            color: var(--secondary);
            font-size: 0.9rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .promo-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            background: none;
            border: none;
            color: var(--secondary);
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
        }
        
        .action-btn:hover {
            background-color: rgba(79, 70, 229, 0.1);
            color: var(--primary);
        }
        
        .action-btn.liked {
            color: var(--danger);
        }
        
        .action-btn.saved {
            color: var(--primary);
        }
        
        .image-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4px;
        }
        
        .single-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: var(--radius);
        }
        
        .multi-image {
            width: 100%;
            height: 140px;
            object-fit: cover;
        }
        
        .image-count-overlay {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.85rem;
            padding: 2px 8px;
            border-radius: 4px;
        }
        
        /* 特殊样式的促销卡片 */
        .featured-promo {
            border-left: 4px solid var(--primary);
        }
        
        .flash-promo {
            border-top: 3px solid var(--danger);
        }
        
        .flash-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background-color: var(--danger);
            color: white;
            font-size: 0.8rem;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-weight: 600;
        }
        
        .limited-promo {
            position: relative;
        }
        
        .countdown {
            font-size: 0.9rem;
            color: var(--danger);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
    </style>
</head>
<body>
    <div class="container py-5">
        <h2 class="section-title">热门促销推荐</h2>
        
        <!-- 布局1: 带单张图片的标准卡片 -->
        <div class="row">
            <div class="col-md-6">
                <div class="promo-card p-4">
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=1" alt="用户头像" class="author-avatar">
                        <div>
                            <div class="author-name">时尚精选</div>
                            <div class="post-time">2小时前</div>
                        </div>
                    </div>
                    
                    <h3 class="h5 mb-2">夏季服装大促，全场低至3折起</h3>
                    <p class="text-secondary mb-3">夏季新品上市，配合换季清仓，全场服装3折起，更有满减优惠券可以叠加使用，先到先得！</p>
                    
                    <img src="https://picsum.photos/600/400?random=10" alt="夏季服装促销" class="single-image mb-3">
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>2.5k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>128</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>342</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 布局2: 带多张图片的卡片 -->
            <div class="col-md-6">
                <div class="promo-card p-4 featured-promo">
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=2" alt="用户头像" class="author-avatar">
                        <div>
                            <div class="author-name">数码科技</div>
                            <div class="post-time">昨天 15:30</div>
                        </div>
                    </div>
                    
                    <h3 class="h5 mb-2">618数码狂欢节，新品首发特惠</h3>
                    <p class="text-secondary mb-3">年度最大数码促销活动，新品手机、电脑、耳机等产品限时特惠，更有赠品相送！</p>
                    
                    <div class="image-grid mb-3">
                        <img src="https://picsum.photos/300/300?random=11" alt="数码产品1" class="multi-image rounded">
                        <img src="https://picsum.photos/300/300?random=12" alt="数码产品2" class="multi-image rounded">
                        <img src="https://picsum.photos/300/300?random=13" alt="数码产品3" class="multi-image rounded">
                        <img src="https://picsum.photos/300/300?random=14" alt="数码产品4" class="multi-image rounded">
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>5.8k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>342</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>896</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局3: 无图片的促销卡片 -->
        <div class="row">
            <div class="col-md-4">
                <div class="promo-card p-4">
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=3" alt="用户头像" class="author-avatar">
                        <div>
                            <div class="author-name">美食优选</div>
                            <div class="post-time">3天前</div>
                        </div>
                    </div>
                    
                    <h3 class="h5 mb-2">餐饮优惠券合集，多家餐厅通用</h3>
                    <p class="text-secondary mb-3">整理了全城50+家热门餐厅的优惠券，从火锅到日料，从快餐到正餐，满足你的各种口味需求。</p>
                    
                    <div class="bg-light p-3 rounded mb-3">
                        <div class="d-flex justify-content-between mb-2">
                            <span>满200减50</span>
                            <span class="text-primary">立即领取</span>
                        </div>
                        <div class="d-flex justify-content-between mb-2">
                            <span>周一至周五可用</span>
                            <span class="text-secondary">有效期至6月30日</span>
                        </div>
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>1.2k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>86</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>156</span>
                            </button>
                            <button class="action-btn save-btn saved">
                                <i class="fas fa-bookmark"></i>
                                <span>已收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 布局4: 带3张图片的横向布局 -->
            <div class="col-md-8">
                <div class="promo-card p-4 flash-promo">
                    <div class="d-flex justify-content-between mb-3">
                        <div class="promo-author">
                            <img src="https://picsum.photos/100/100?random=4" alt="用户头像" class="author-avatar">
                            <div class="ms-2">
                                <div class="author-name">旅行特惠</div>
                                <div class="post-time">4小时前</div>
                            </div>
                        </div>
                        
                        <div class="countdown">
                            <i class="far fa-clock"></i>
                            <span>限时24小时</span>
                        </div>
                    </div>
                    
                    <h3 class="h5 mb-3">端午小长假旅行套餐，买二送一</h3>
                    
                    <div class="d-flex gap-2 mb-3">
                        <img src="https://picsum.photos/300/200?random=15" alt="旅行目的地1" class="flex-1 rounded" style="height: 140px; object-fit: cover;">
                        <img src="https://picsum.photos/300/200?random=16" alt="旅行目的地2" class="flex-1 rounded" style="height: 140px; object-fit: cover;">
                        <img src="https://picsum.photos/300/200?random=17" alt="旅行目的地3" class="flex-1 rounded" style="height: 140px; object-fit: cover;">
                    </div>
                    
                    <p class="text-secondary mb-3">精选国内10大热门旅行目的地，端午小长假套餐买二送一，包含酒店住宿和景点门票，数量有限！</p>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>3.7k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>215</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>542</span>
                            </button>
                            <button class="action-btn save-btn">
                                <i class="far fa-bookmark"></i>
                                <span>收藏</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 布局5: 带少量图片的紧凑布局 -->
        <h2 class="section-title mt-5">限时特惠</h2>
        
        <div class="row">
            <div class="col-md-4">
                <div class="promo-card p-3 limited-promo">
                    <div class="flash-badge">仅剩10件</div>
                    
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=5" alt="用户头像" class="author-avatar">
                        <div class="ms-2">
                            <div class="author-name">家居生活</div>
                            <div class="post-time">1小时前</div>
                        </div>
                    </div>
                    
                    <h3 class="h6 mt-2 mb-2">北欧风格家居用品，限时7折</h3>
                    
                    <img src="https://picsum.photos/400/300?random=18" alt="家居用品" class="w-100 rounded mb-2" style="height: 140px; object-fit: cover;">
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>876</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>42</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>98</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="col-md-4">
                <div class="promo-card p-3">
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=6" alt="用户头像" class="author-avatar">
                        <div class="ms-2">
                            <div class="author-name">美妆护肤</div>
                            <div class="post-time">5小时前</div>
                        </div>
                    </div>
                    
                    <h3 class="h6 mt-2 mb-2">国际大牌美妆，满1000减300</h3>
                    
                    <div class="image-grid mb-2">
                        <img src="https://picsum.photos/200/200?random=19" alt="美妆产品1" class="multi-image rounded">
                        <img src="https://picsum.photos/200/200?random=20" alt="美妆产品2" class="multi-image rounded">
                    </div>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>1.5k</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>78</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn">
                                <i class="far fa-heart"></i>
                                <span>215</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="col-md-4">
                <div class="promo-card p-3">
                    <div class="promo-author">
                        <img src="https://picsum.photos/100/100?random=7" alt="用户头像" class="author-avatar">
                        <div class="ms-2">
                            <div class="author-name">图书音像</div>
                            <div class="post-time">昨天 10:20</div>
                        </div>
                    </div>
                    
                    <h3 class="h6 mt-2 mb-2">精选图书买一送一，文学、科技、经管类均参与</h3>
                    
                    <p class="text-secondary text-sm mb-2">本月精选500+本畅销书，买一送一活动，线上线下同步进行，不容错过！</p>
                    
                    <div class="d-flex justify-content-between align-items-center">
                        <div class="promo-stats">
                            <div class="stat-item">
                                <i class="far fa-eye"></i>
                                <span>642</span>
                            </div>
                            <div class="stat-item">
                                <i class="far fa-comment"></i>
                                <span>36</span>
                            </div>
                        </div>
                        
                        <div class="promo-actions">
                            <button class="action-btn like-btn liked">
                                <i class="fas fa-heart"></i>
                                <span>128</span>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 点赞功能
            document.querySelectorAll('.like-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countSpan = this.querySelector('span');
                    let count = parseInt(countSpan.textContent);
                    
                    if (icon.classList.contains('far')) {
                        // 点赞
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('liked');
                        countSpan.textContent = count + 1;
                    } else {
                        // 取消点赞
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('liked');
                        countSpan.textContent = count - 1;
                    }
                });
            });
            
            // 收藏功能
            document.querySelectorAll('.save-btn').forEach(btn => {
                btn.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const textSpan = this.querySelector('span');
                    
                    if (icon.classList.contains('far')) {
                        // 收藏
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        this.classList.add('saved');
                        textSpan.textContent = '已收藏';
                    } else {
                        // 取消收藏
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        this.classList.remove('saved');
                        textSpan.textContent = '收藏';
                    }
                });
            });
        });
    </script>
</body>
</html>

